#include "stdafx.h"

static int s_data = 0;

DESCRIPTION_10_TEST_SUITE_CTOR(SubResourceData, (&s_data))

BOOST_FIXTURE_TEST_CASE(Default, TestSubResourceData)
{
	BOOST_REQUIRE_EQUAL(&s_data, m_desc.pSysMem);
	BOOST_REQUIRE_EQUAL(0, m_desc.SysMemPitch);
	BOOST_REQUIRE_EQUAL(0, m_desc.SysMemSlicePitch);
}

#define SUB_RESOURCE_DATA_SETTER_TEST_CASE(type_, name_, value_) \
	DESCRIPTION_10_TEST_CASE(type_, name_, value_, SubResourceData)

SUB_RESOURCE_DATA_SETTER_TEST_CASE(UINT, SysMemPitch, 2)
SUB_RESOURCE_DATA_SETTER_TEST_CASE(UINT, SysMemSlicePitch, 2)

BOOST_AUTO_TEST_SUITE_END()
